package com.tan.mapper.util;

import com.tan.model.AirQualityIndex;

import java.util.List;

public class PageUtil {

    //总条数
    private int sum;

    //总页数
    private int pageSum;

    //当前页
    private int page;

    //当前页最后一条序号
    private int lastPage;

    //每页条数
    private int pageNum = 5;

    //当前页的第一条序号
    private int firstPage;

    //当前页数据
    private List<AirQualityIndex> allAirQuality;

    public int getPageSum() {
        return pageSum;
    }

    public void setPageSum(int pageSum) {
        this.pageSum = pageSum;
    }

    public int getFirstPage() {
        return firstPage;
    }

    public void setFirstPage(int firstPage) {
        this.firstPage = firstPage;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public List<AirQualityIndex> getAllAirQuality() {
        return allAirQuality;
    }

    public void setAllAirQuality(List<AirQualityIndex> allAirQuality) {
        this.allAirQuality = allAirQuality;
    }

    public int getLastPage() {
        return lastPage;
    }

    public void setLastPage(int lastPage) {
        this.lastPage = lastPage;
    }

    @Override
    public String toString() {
        return "PageUtil{" +
                "sum=" + sum +
                ", pageSum=" + pageSum +
                ", page=" + page +
                ", lastPage=" + lastPage +
                ", pageNum=" + pageNum +
                ", allAirQuality=" + allAirQuality +
                '}';
    }
}
